<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'adminList.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<!--框架必需start-->
<script type="text/javascript" src="ui/js/jquery.js"></script>
<script type="text/javascript" src="ui/js/framework.js"></script>
<link href="ui/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" id="skin" prePath="/"/>
<link rel="stylesheet" type="text/css" id="customSkin"/>
<link href="ui/skins/blue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="blue"/>
<!--框架必需end-->
  <body>
 	<div id="scrollContent" style="float: left;width: 100%">
	<table class="tableStyle" useClick="false" id="list" style="text-align: center;">
			<tr>
				<th width="5%">设备名称</th>

				<s:iterator value="kindList" var="kl">
					<th width="5%"><s:property value="#kl.tkName"/></th>
				</s:iterator>
			</tr>
			<s:iterator value="deviceList"  var="dl">
				<tr>
				<td><s:property value="#dl.dName"/></td>			
				<s:iterator value="#dl.Tasks" var="tl" status="st">					
					<td align="center">
						<s:if test="#tl.dStatus==0">
							<span class="img_circle" title="断线" style="width:20px; height:20px; line-height:10px; text-align:center; float:left;"></span>
						</s:if>
						<s:if test="#tl.dStatus==1">
							<span title="正常" class="img_ok" style="width:20px; height:20px; line-height:10px; text-align:center; float:left;"></span>
						</s:if>
						<s:if test="#tl.dStatus==2">
							<span title="警告" class="img_warn" style="width:20px; height:20px; line-height:10px; text-align:center; float:left;"></span>
						</s:if>
						<s:if test="#tl.dStatus==3">
							<span title="异常" class="img_delete" style="width:20px; height:20px; line-height:10px; text-align:center; float:left;"></span>
						</s:if>
					</td>
				</s:iterator>				 
				</tr>
			</s:iterator>		
			<th width="100%" colspan="5">
				&nbsp;&nbsp;&nbsp;<span class="icon_circle">：断线</span>
				&nbsp;&nbsp;&nbsp;<span class="icon_ok">：正常</span>
				&nbsp;&nbsp;&nbsp;<span class="icon_warn">：警告</span>
				&nbsp;&nbsp;&nbsp;<span class="icon_delete">：异常</span>
			</th>
		</table>
	</div>		
</body>
</html>
